// 统一请求路径前缀在libs/axios.js中修改
import {getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest} from '@/libs/axios';

// 分页获取数据
export const getAchievementList = (params) => {
  return getRequest('/achievement/getByPage', params)
}
// 添加
export const addAchievement = (params) => {
  return postRequest('/achievement/insertOrUpdate', params)
}
// 编辑
export const editAchievement = (params) => {
  return postRequest('/achievement/insertOrUpdate', params)
}
// 删除
export const deleteAchievement = (params) => {
  return postRequest('/achievement/delByIds', params)
}
//审核
export const audit = (params) => {
  return postRequest('/achievement/audit', params)
}

//导入数据(postBodyRequest)
export const importDataApi = (params) => {
  return postBodyRequest('/achievement/importDataApi', params)
}
